﻿@model DAEProde.Tasks.ViewModels.EditTournamentViewModel

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Editar Torneo</h2>

@using (Html.BeginForm("Edit", "TournamentManager"))
{
    @Html.ValidationSummary("Please note the following:")
    @Html.AntiForgeryToken()

    <fieldset>
        <legend>Datos</legend>

        @Html.HiddenFor(m => m.Tournament.Id)

         <div class="editor-label">
            @Html.LabelFor(m => m.Tournament.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.Tournament.Name)
            @Html.ValidationMessageFor(m => m.Tournament.Name)
        </div>         

        <p>
            <input type="submit" value="Guardar" /> 
            @Html.ActionLink("Cancelar", "Index")
        </p>
    </fieldset>
}